﻿@model AuditWeb.Models.AdminArchiveModel

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/SubjectAdmin/_SubjectAdminLayout.cshtml";
    IEnumerable<AuditModel.Archive> archives = (List<AuditModel.Archive>)ViewBag.Archives;
}

<h2>@AuditResources.Archive.ObjectName<text></text></h2>
<div class="padding_panel">
@using(Html.BeginForm("Archives"))
{
    @Html.Hidden("id", Model.AnnualEventId)
    @AuditResources.Archive.ObjectName<text>:</text> @Html.TextBox("archiveid") <text>&nbsp;</text>
    @AuditResources.County.ObjectName<text>:</text> @Html.DropDownList("CountyCode", AuditResources.UI.All) <text>&nbsp;</text>
     <input type="submit" value="@AuditResources.UI.Search" />
}
</div>
@using (Html.BeginForm("Download", "SubjectAdmin"))
{
    @Html.ValidationSummary(true)
    @Html.Partial("_ArchivesGrid", archives)
    @Html.ValidationMessageFor(model => model.Date)
    @Html.HiddenFor(model => model.AnnualEventId)
    @Html.HiddenFor(model => model.ArchiveId)
    @Html.HiddenFor(model => model.CountyCode)
    @Html.HiddenFor(model => model.SubjctId)
}
